//设计宽度
$design-width: 375;
//设备宽度
$standard-width: 750;

// px单位转换为rpx
@function px2rpx($px) {
    @return $px * $standard-width / $design-width + rpx;
}

@function pow($base, $exponents) {
    $raised: 1;

    @for $i from 1 through $exponents {
        $raised: $raised * $base;
    }

    @return $raised;
}
